# Makefile for dvi2tty --te@informatik.uni-hannover.de. Public domain.
version = 4.0

kpse_include ../make/paths.mk
kpse_include ../make/common.mk
kpse_include ../make/programs.mk
prog_cflags = -DUNIX -DKPATHSEA

programs = disdvi dvi2tty
default all: $(programs)

dvi2tty: $(kpathsea) dvi2tty.o dvistuff.o
	$(kpathsea_link)  dvi2tty.o dvistuff.o $(LOADLIBES)
disdvi: $(kpathsea) disdvi.o
	$(kpathsea_link) disdvi.o $(LOADLIBES)

kpse_include ../make/tkpathsea.mk

install: install-exec install-data
uninstall: uninstall-exec uninstall-data

install-exec: $(programs)
	$(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir)
	for p in $(programs); do $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
uninstall-exec:
	for p in $(programs); do rm -f $(bindir)/$$p; done

install-data: dvi2tty.1
	$(SHELL) $(top_srcdir)/../mkinstalldirs $(man1dir)
	$(INSTALL_DATA) $(srcdir)/dvi2tty.1 $(man1dir)/dvi2tty.$(manext)

uninstall-data:
	rm -f $(man1dir)/dvi2tty.$(manext)
pre-dist-$(distname):
post-dist-$(distname):

kpse_include ../make/dist.mk
kpse_include ../make/config.mk

info dvi check:

kpse_include ../make/clean.mk
kpse_include ../make/rdepend.mk
kpse_include depend.mk
